//
// Created by Administrator on 2025/4/13/周日.
//

#include "iostream"

using namespace std;

int main() {

//    开辟空间，感觉有点类似于Java语言横纵的int[] a=[]
    int *arr = new int[10];
    for (int i = 0; i < 10; ++i) {
        arr[i] = i + 10;
    }
    for (int i = 0; i < 10; ++i) {
        cout << arr[i] << endl;

    }

//    释放数组需要添加[]
    delete[] arr;

}